/* eslint-disable eol-last */
/* eslint-disable indent */
'use strict';
module.exports = app => {
    // 引入数据类型
    const { INTEGER, BOOLEAN } = app.Sequelize;
    // 建模
    const AtRelation = app.model.define('atRelation', {
        //  自动创建id，crestaAt，updateAt
        blogId: {
            type: INTEGER,
            allowNull: false,
            comment: '用户id',
        },
        userId: {
            type: INTEGER,
            allowNull: false,
            comment: '微博id',

        },
        isRead: {
            type: BOOLEAN,
            defaultValue: false,
            comment: '是否已读 默认是false',
        },
    });
    return AtRelation;
};